from .config_loader import get_global_config

class DatabaseConfig:
    
    def __init__(self, db_type="redis-stack"):
        self.config = get_global_config()["database"][db_type]

    @property
    def url(self):
        return self.config["url"]
    
    @property
    def default_ttl(self):
        return self.config["default_ttl"]
